package com.qfedu.openplateform.api.testApi.entity;

import java.io.Serializable;

public class Poem implements Serializable {
    private Integer id; // id
    private String subject; // 名称
    private String dynasty; // 朝代
    private String author; //作者
    private String content; // 内容

    public Poem() {
    }

    public Poem(Integer id, String subject, String dynasty, String author, String content) {
        this.id = id;
        this.subject = subject;
        this.dynasty = dynasty;
        this.author = author;
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Poem{" +
                "id=" + id +
                ", subject='" + subject + '\'' +
                ", dynasty='" + dynasty + '\'' +
                ", author='" + author + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
